﻿$(document).on(
"click",
"a",
function (event) {

    // Stop the default behavior of the browser, which
    // is to change the URL of the page.
	var urlStr = "";
	if ($(event.target).attr("href")) {
		urlStr = $(event.target).attr("href");
	} else {
		urlStr = $(event.target).parent().attr("href");
	}
	
		event.preventDefault();
		// Manually change the location of the page to stay in
		// "Standalone" mode and change the URL at the same time.
		location.href = urlStr;
	
	
}
);